From: Alexei Fedorov Date: Fri, 5 Apr 2019 12:44:30 +0000 (+0100) Subject: Fix restoration of PAuth context X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=050136d4853f371479339b641b95249db1585a68;p=project%2Fbcm63xx%2Fatf.git Fix restoration of PAuth context Replace call to pauth_context_save() with pauth_context_restore() in case of unknown SMC call. Change-Id: Ib863d979faa7831052b33e8ac73913e2f661f9a0 Signed-off-by: Alexei Fedorov --- diff --git a/bl31/aarch64/runtime_exceptions.S b/bl31/aarch64/runtime_exceptions.S index c2951768..1734d7ec 100644 --- a/bl31/aarch64/runtime_exceptions.S +++ b/bl31/aarch64/runtime_exceptions.S @@ -420,7 +420,7 @@ smc_unknown: mov x0, #SMC_UNK str x0, [sp, #CTX_GPREGS_OFFSET + CTX_GPREG_X0] #if CTX_INCLUDE_PAUTH_REGS - bl pauth_context_save + bl pauth_context_restore #endif b restore_gp_registers_eret